package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.ShopCart;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/27 15:50
 */
public interface ShopCartDao {

    //加入购物车
    int addToShopCart(ShopCart shopCart);

    //购物车商品
    List<Map<String,Object>> shopCartList(String customerId);

    //删除购物车商品
    int deleteShopCartById(Integer id);

    //删除
    int deleteById(String customerId, String goodsId);

    int vertifiData(String customerId, String goodsId);

    ShopCart selectByCustomerIdAndGoodsId(String customerId, String goodsId);

    int updateByPrimaryKeySelective(ShopCart shopCart1);
}
